package cn.miju.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * 业务类
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-08 21:11
 */

@Data
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
    /**
     * 标题
     */
    private String title;
    /**
     * 简介
     */
    private String description;
    /**
     * 服务条款
     */
    private String termsOfServiceUrl;
    /**
     * url前缀
     */
    private String pathPrefix;
    private Contact contact;
    private String version;

    @Data
    @Component
    @ConfigurationProperties(prefix = "swagger.contact")
    public static class Contact {
        private String name;
        private String url;
        private String email;
    }

}
